NotBlankString

@Serializable(with = NotBlankStringSerializer::class)
@Since(version = KotoolsTypesVersion.V4_0_0)
value class NotBlankString : Comparable<NotBlankString>

Represents a string that has at least one character excluding whitespaces.

Types

Link copied to clipboard
object Companion

Contains static declarations for the NotBlankString type.

Functions

Link copied to clipboard
@Since(version = KotoolsTypesVersion.V4_1_0)
open infix operator override fun compareTo(other: NotBlankString): Int

Compares this string alphabetically with the other one for order. Returns zero if this string equals the other one, a negative number if it's less than the other one, or a positive number if it's greater than the other one.

Link copied to clipboard
open override fun toString(): String

Returns this string as a String.

Properties

Link copied to clipboard

Returns the length of this string.

Extensions

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun NotBlankString.plus(other: String): NotBlankString
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun NotBlankString.plus(other: NotBlankString): NotBlankString

Concatenates this string with the other one.

@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun NotBlankString.plus(other: Char): NotBlankString

Concatenates this string with the other character.